# coding:utf-8
import unittest
import sys
reload(sys)
sys.setdefaultencoding('utf-8')

class Test(unittest.TestCase):
    def test01(self):
        u'判断 a == b'
        a = 1
        b = 1
        self.assertEqual(a, b)

    def test02(self):
        u"fail案例"
        a=1
        b=2
        self.assertEqual(a,b)

    def test03(self):
        u'判断 a in b'
        a = "hello"
        b = "hello world!"
        self.assertIn(a, b)

    def test04(self):
        u'判断 a is True'
        a = True
        self.assertTrue(a)

    def test05(self):
        u"判断 a is False"
        a = False
        b = "yoyo"
        self.assertFalse(a)
    def test06(self):
        u"a is b"
        a = 'x'
        b = 'x'
        self.assertIs(a,b)

    def test07(self):
        u"a is None"
        a = None
        self.assertIsNone(a)

    def test08(self):
        u"判断对象是否正确"
        a = 1
        self.assertIsInstance(a,int)

if __name__ == "__main__":
    unittest.main()